(:
XQuery that gets filters from web.xml
:)

declare namespace ns = "http://java.sun.com/xml/ns/j2ee";
<war-filters>{
let $doc := doc("web.xml")

for $filters in $doc//ns:filter
let $name := $filters/ns:filter-name
return

   <filter name="{$name}"></filter>
}</war-filters>